<!DOCTYPE html>
<html>
<head>
    <title>${catlog}排行 - ${siteName} - 中立的小说排名、评分网站</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="好看的小说,${catlog}排行,小说评分,小说评测">
    <meta name="description" content="天书榜${catlog}排行">
    <meta name="author" content="${siteName}">
    <base href="${serverUri}"/>
    <link rel="icon" type="image/png" sizes="32x32" href="icon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="icon/favicon-16x16.png">
    <link rel="stylesheet" href="admin/plugins/fontawesome-free/css/all.min.css">
    <link rel="stylesheet" href="css/ionicons/2.0.1/ionicons.min.css">
    <link rel="stylesheet" href="admin/plugins/datatables-bs4/css/dataTables.bootstrap4.css">
    <link rel="stylesheet" href="admin/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css">
    <link rel="stylesheet" href="admin/css/adminlte.min.css">
    <link rel="stylesheet" href="css/mainpage.css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition layout-top-nav" style="background: #b3b3b3;">
<div class="wrapper">
    <#include "./header.ftl">
    <div class="content-wrapper">
        <div class="row">
            <div class="col-lg-2" style="background: #b3b3b3;">

            </div>
            <div class="col-lg-8 col-sm-12">
                <div class="row">
                    <div class="col-lg-10 col-sm-12" style="border-right: 2px solid #88939e">
                        <div class="content-header">
                            <div class="container-fluid">
                                <div class="row mb-2">
                                    <div class="col-sm-6">
                                        <div class="row">
                                            <h1 class="m-0 text-dark">排行榜-</h1>
                                            <h1 class="text-info">${type}</h1>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <section class="content">
                            <div class="row">
                                <div class="col-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <table>
                                                <tbody>
                                                <td>
                                                    <h3 class="card-title">排名：
                                                        <span class="pffontext">${indexOfFirst}</span> ~ <span class="pffontext">${indexOfLast}</span>
                                                    </h3>
                                                </td>
                                            </table>
                                        </div>
                                        <div class="card-body table-responsive">
                                            <table id="fictionTable" class="table table-borderless table-striped table-hover">
                                                <thead>
                                                <tr>
                                                    <th><i class="fa fa-graduation-cap mr-2 d-none d-md-inline" aria-hidden="true"></i>序列</th>
                                                    <th><i class="fa fa-book mr-2 d-none d-md-inline" aria-hidden="true"></i>书名</th>
                                                    <th><i class="fa fa-file-image mr-2 d-none d-md-inline" aria-hidden="true"></i>类型</th>
                                                    <th><i class="fa fa-flag mr-2 d-none d-md-inline" aria-hidden="true"></i>评分</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <#list contentList as row>
                                                    <tr fictionid="${row[0]}" style="cursor: pointer; height: 80px;" onclick="rankPageOnFictionClick(this);">
                                                        <td style="vertical-align: middle;"><span class="ml-4 pffontext">${row[6]}</span></td>
                                                        <td style="vertical-align: middle;">${row[1]}</td>
                                                        <td style="vertical-align: middle;">${row[2]}</td>
                                                        <td style="vertical-align: middle;">
                                                            <strong class="pffontext ml-2">${row[4]}</strong>
                                                        </td>
                                                    </tr>
                                                </#list>
                                            </table>
                                        </div>
                                        <div class="card-footer clearfix">
                                            <label>共${totalPage}页</label>
                                            <#if hasNext>
                                                <button curpage="${currentPage}" class="btn btn-sm btn-outline-info float-right mr-3" onclick="rankPageOnNextPageClick(this);"><i class="fa fa-arrow-right mr-1" aria-hidden="true"></i>下一页</button>
                                            </#if>
                                            <#if hasPrevious>
                                                <button curpage="${currentPage}" class="btn btn-sm btn-outline-warning float-right mr-2" onclick="rankPageOnPreviousPageClick(this);"><i class="fa fa-arrow-left mr-1" aria-hidden="true"></i>上一页</button>
                                            </#if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-2">
                        <h5 class="ml-3" style="margin-top: 5.4rem;">小说类型</h5>
                        <table class="ml-3">
                            <tbody>
                            <#list catlogList as row>
                                <tr style="height: 35px;"><td><a href="${row[1]}">${row[0]}</a></td></tr>
                            </#list>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-lg-2" style="background: #b3b3b3;">

            </div>
        </div>
    </div>
    <#include "./footer.ftl">

</div>
<script src="admin/plugins/jquery/jquery.min.js"></script>
<script src="admin/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="admin/plugins/datatables/jquery.dataTables.js"></script>
<script src="admin/plugins/datatables-bs4/js/dataTables.bootstrap4.js"></script>
<script src="admin/plugins/sweetalert2/sweetalert2.min.js"></script>
<script src="admin/js/adminlte.min.js"></script>
<script src="utility.js"></script>
<script src="script/page/rankpage.js"></script>
</body>
</html>
